<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?>﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="aplus-terminal" content="1"/>
<title>心愿领取详情</title>
<link href="/css/qd.css" rel="stylesheet" type="text/css">
<link href="css/hyxt.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/js/validate-1.14.0.min.js"></script>
<script type="text/javascript" src="/js/qd.js"></script>
<style>
.form{
	margin:8px 1% 0;
	border:1px solid #fafafa;
	color:#333
	}
.form1{
	min-height:auto;
	}
body{
	overflow:scroll;
	}
.form{
	border-collapse:collapse;
	}
.form tr td{
	border:1px solid #666;
	}
table tr{ border-bottom:1px solid #000000;}
</style>
</head>
<body style="background: url(/2020meeting/img/sn_bj.jpg)  center center ;">
<div class="qd">
    <img src="/2020meeting/img/sn_biao.png" style="    width: 6.5rem;margin-left: 0.5rem" class="page1-logo">
	 <div class="qdcg-inner" style="display:block; clear:both;">心愿领取详情</div>



<div style="clear:both;"></div>
 <table width="98%"  bordercolor="#fafafa" cellpadding="2" cellspacing="1"   align="center" class="form">
<tr align="center"  height="2.8rem"  style="border-bottom:1px solid #ccc"  >
  <td width="5%">编号</td>
	<td width="12%">学生姓名</td>
  <td width="31%" >心愿标题</td>

  <td width="12%"  >领取人姓名</td>
	<td width="15%"  >领取人电话</td>
	<!-- <td width="20%"  >领取时间</td> -->
</tr> 
 

<?php
  foreach ($sn_child_data as $key => $value){


?>


<tr  style="border-bottom:1px solid #ccc" >
        <td align="center" ><?php echo $value['number']; ?></td>



        <td align="center"><a href="2020sn_pick_child.php?sn_aid=<?php echo $value['aid'] ?>"><?php echo $value[23]; ?></a></td>   

        <td  align="left" > &nbsp;<?php echo $value['sn_xytitle']; ?></td>

        <!-- <td align="center" ><?php echo $value['title']; ?></td> -->



    <td align="center" >
          <?php
              if ($value['uname'] == ''){
                echo $value['w_nickname'];
              } else {
                echo $value['uname'];
              }
          ?>   
    </td> 
        <td  align="center"> 
          <?php
              if ($value['tell'] == '0'){
                echo '还没有填写电话';
              } else {
                echo $value['tell'];
                if ($value['tell'] == ''){
                  echo $value['qq'];
                }

              }
          ?>
        </td>

        <!-- <td  align="center"><?php if(empty($value['poptime'])) echo ""; else echo MyDate('Y-m-d H:i',$value['poptime']); ?></td>   -->
      </tr>


<?php
  }
?>


   </table>
   <br>
   <br>
   <br>
   <br>
   <br>
   <br>
   <br>
   <br>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script>    
    $(document).on('click','#mg',function(){
          var obj = $(this);
          var title = obj.text();
          obj.hide();
          obj.next().attr('type','text').val(title);  
     })
    $(document).on('blur',".msg1",function(){
          var obj = $(this); 
          var msg = obj.val();
          var id = obj.parent().prev().val();
          $.ajax({
               url:"guestbook.php",
               type:"get",
               dataType:"json",
               data:{
                  msg:msg,
                  id:id
               },
               success:function(result){
                  // console.log(result);
                  // if(result != true){
                  //     alert('修改失败');
                  // }else{
                  //     alert('修改成功');
                  // }     
              }
          })
          var m = obj.val()+'<img src="../../images/gtk-edit.png" style="float: right;">';
          obj.prev().html(m);
          obj.attr('type','hidden');
          obj.prev().show();
    })
</script>
</div>
</div>  
 </body>
</html>
    
    <style>
*{
  color:#000;
  }
  </style>